package com.ticket.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulServer;

/**
 * 代理所有微服务的接口网关启动类
 * 
 * @author Ablert
 *
 */
@SpringBootApplication
@EnableDiscoveryClient // 实现服务发现 注册
@EnableZuulServer // 开启zuul路由
@EnableOAuth2Sso
public class GatewayApplication {
	public static void main(String[] args) {
		SpringApplication.run(GatewayApplication.class, args);
	}

}
